The Formal Termination Problem for Programs with Finite ALGOL 68-Modes
نویسندگان
چکیده
In f 1 l] the importance of the formal termination problem for a high level programming language has been pointed out. If this problem is algorithmically solvable, then the translator is at least principally able to check whether certain properties closely related to termination like macro property of programs or nonrecursivity or block behaviour of procedures are fulfilled and then to produce better object code. Whereas formal termination of ALGOL 60or 68programs is undecidable it has been conjectured in [lo] that the macro property is decidable for programs with finite modes in the sense of ALGOL 68 [ 141. In [ 1,2] the solvability of the formal termination and macro problem for finite mode programs is proved: Such programs T may be considered in a certain sense as n-rational program schemes S and vice versa. Formal non-termination of ?r means emptiness of the level n tree language generated by S and the authors show by initial algebra methods [S] that the emptiness problem is solvable. Now we should like to present a quite different solvability proof purely in phrases well Izown to (system-) programmers and compiler constructors. Firstly we observe that we may restrict ourselves to programs of ALGOL 60-type where procedures do not yield procedures as their values. Secondly, in order to study the formal termination problem for ALGOL 60-programs it suffices to investigate the actual termination proble basic statements are dummy statements or procedure statements only and where we have nondeterministic alternative statements instead of conditional statements. We present a contextfree-like production system P for A6OD:
منابع مشابه
On the Transformational Derivation of an Efficient Recognizer for Algol 68
During the sixties two level van Wijngaarden grammars (2vwg) were introduced for the formal definition of Algol 68. Two level van Wijngaarden grammars provide a formalism suited for writing rigorous formal definitions which read like human prose. Both the context free and context sensitive syntax of Algol 68 are defined in 2vwg. However, the specification is not executable. The Extended Affix G...
متن کاملA Compositional Method for Deciding Equivalence and Termination of Nondeterministic Programs
In this paper we address the problem of deciding mayand must-equivalence and termination of nondeterministic finite programs from second-order recursion-free Erratic Idealized Algol. We use game semantics to compositionally extract finite models of programs, and the CSP process algebra as a concrete formalism for representation of models and their efficient verification. Observational mayand mu...
متن کامل36 Algorithm
Algol 68 is considerably more difficult to learn than Pascal, partly due to the unusual terminology of Algol 68, which has not been widely accepted. The defining document of Algol 68 is much more elaborate and precise than the Pascal Report, but is also much more difficult to understand than the shorter and less formal Pascal document. This applies, in particular, to the two-level context-sensi...
متن کاملFirst-Order Proofs for Higher-Order Languages
We study the use of the-calculus for semantical descriptions of higher-order concurrent languages with state. As an example, we choose Concurrent Idealized ALGOL (CIA). CIA is particularly interesting as, yet being a core language, it combines imperative and parallel features with a procedural mechanism of full higher order. It can thus be used as a formal model for concurrent programs as, e.g....
متن کاملThe regular-language semantics of second-order idealized ALGOL
We explain how recent developments in game semantics can be applied to reasoning about equivalence of terms in a non-trivial fragment of Idealized Algol (IA) by expressing sets of complete plays as regular languages. Being derived directly from the fully abstract game semantics for IA, our model inherits its good theoretical properties; in fact, for second-order IA taken as a stand-alone langua...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Inf. Process. Lett.
دوره 9 شماره
صفحات -
تاریخ انتشار 1979